package com.news.model;

public class News {
    private Integer new_id;     // 新闻ID
    private Integer sort_id;    // 分类ID
    private String title;      // 新闻标题
    private String content;    // 新闻内容
    private String newTime;    // 新闻时间
    private String writer;     // 作者
    private String img_url;

    public News() {
    }

    public News(Integer new_id, Integer sort_id, String title, String content, String newTime, String writer, String img_url) {
        this.new_id = new_id;
        this.sort_id = sort_id;
        this.title = title;
        this.content = content;
        this.newTime = newTime;
        this.writer = writer;
        this.img_url = img_url;
    }

    /**
     * 获取
     * @return new_id
     */
    public Integer getNew_id() {
        return new_id;
    }

    /**
     * 设置
     * @param new_id
     */
    public void setNew_id(Integer new_id) {
        this.new_id = new_id;
    }

    /**
     * 获取
     * @return sort_id
     */
    public Integer getSort_id() {
        return sort_id;
    }

    /**
     * 设置
     * @param sort_id
     */
    public void setSort_id(Integer sort_id) {
        this.sort_id = sort_id;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     * @return newTime
     */
    public String getNewTime() {
        return newTime;
    }

    /**
     * 设置
     * @param newTime
     */
    public void setNewTime(String newTime) {
        this.newTime = newTime;
    }

    /**
     * 获取
     * @return writer
     */
    public String getWriter() {
        return writer;
    }

    /**
     * 设置
     * @param writer
     */
    public void setWriter(String writer) {
        this.writer = writer;
    }

    /**
     * 获取
     * @return img_url
     */
    public String getImg_url() {
        return img_url;
    }

    /**
     * 设置
     * @param img_url
     */
    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }

    public String toString() {
        return "News{new_id = " + new_id + ", sort_id = " + sort_id + ", title = " + title + ", content = " + content + ", newTime = " + newTime + ", writer = " + writer + ", img_url = " + img_url + "}";
    }
}